;(function(FormBase) {
    FormBase.PwdAgain = FormBase.extend({
        otherValue: "",
        msgObj: { // error msg
            PWD_NO_EAQUL: "两次密码输入不一致"
        },
        constructor: function(formEleId, mainContent, formConfig) {
            this.inherit(formEleId, mainContent, formConfig);
            this.otherValue = formConfig.otherValue;
        },
        susFun: function() {},
        errFun: function() {},
        checkForm: function() {
            var otherValue = $(this.otherValue).val();
            if (this.newValue) {
                if (otherValue == this.newValue) {
                    return {
                        status: true,
                        msg: null,
                        value: this.newValue
                    };

                } else {
                    return {
                        status: false,
                        msg: this.getMsg("PWD_NO_EAQUL"),
                        value: this.newValue
                    };
                }
            } else {
                return {
                    status: false,
                    msg: null,
                    value: this.newValue
                }
            }
        }

    });
})(window.FormBase = window.FormBase || {})
